package com.wynet.shopsapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_comment")
@NoArgsConstructor
public class Comment {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer u_id;
    private Integer g_id;
    private String c_detail;
    private Date c_ctime;

    public Comment(Integer u_id, Integer g_id, String c_detail) {
        this.u_id = u_id;
        this.g_id = g_id;
        this.c_detail = c_detail;
    }
}
